@import "https://unpkg.com/open-props@1.6.17/easings.min.css";

:root {
    --door-scale: 1.005;
}

html, body{
    overflow-x: hidden;
}

body {
    background-color: rgb(5,5,5);
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.container {
    margin-top: 2vw;
    justify-content: center;
}

.copy {
    justify-content: center;
    text-align: center;
    max-width: 420px;
    margin-left: 10%;
    margin-right: 10%;
}

h1 {
    font-family: "Bebas Neue";
    color: rgb(242, 242, 242);
    font-size: 60px;
    line-height: 1em;
    margin: 0;
}

p {
    font-family: "Assistant";
    color: rgb(242, 242, 242);
    font-size: 16px;
    padding: 0.2em;
}

li::marker{
    color: rgb(182,30,30);
}

li {
    
    font-family: "Assistant";
    color: rgb(242, 242, 242);
    font-size: 16px;
}

a {
    font-family: "Assistant";
    color: rgb(242, 242, 242);
    font-size:16px;
    text-decoration:none;
}

.door {
    height: 50vh;
    width: auto;
}

#frame {
    position: relative;
    z-index: 1;
}

#door {
    position: absolute;
    z-index: 0;
}

#subtext {
    margin: 10px;
    color: rgb(5,5,5);
    font-size: 16px;
}

#contact {
    text-align: center;
}

#logo {
    max-width: 400px;
    height: auto;
    margin: 10%;
    
}

#red {
    color: rgb(182,30,30);
}

@media only screen and (hover: none) and (pointer: coarse){
    h1{
        font-size: 48px;
    }
    p{
        font-size: 12px;
    }
    a{
        font-size: 12px;
    }
    #subtext {
        font-size: 10px;
    }
    body{
        width: 80%;
    }
    #logo{
        max-width: 90%;
    }
}

@keyframes knock {
    2% {
    transform: scale(1);
    }
    4% {
    transform: scale(var(--door-scale));
    }
    6% {
    transform: scale(1);
    } 
    10% {
    transform: scale(1);
    } 
    12% {
    transform: scale(var(--door-scale));
    }
    14% {
    transform: scale(1);
    }
    18% {
    transform: scale(1);
    }
    20% {
    transform: scale(var(--door-scale));
    }
    22% {
    transform: scale(1);
    }
}

[anim="knock"]{
    /* is hitting twice the amount? why?*/
    animation: knock var(--ease-elastic-in-3) 4000ms infinite;
}